package com.team11.server.pojo.student;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @author DuKang
 * @Date 2021/7/12 15:59
 * @Desc:
 * @Version: 1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="作业任务对象", description="作业任务")
public class StudentHomeworkTask implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "h_id", type = IdType.AUTO)
    private Integer hId;

    @ApiModelProperty(value = "作业主题")
    @TableField("h_title")
    private String hTitle;

    @ApiModelProperty(value = "作业内容")
    @TableField("s_content")
    private String sContent;

    @ApiModelProperty(value = "附件地址")
    @TableField("c_file")
    private String cFile;

    @ApiModelProperty(value = "附件名称")
    @TableField("c_f_name")
    private String cFName;

    @ApiModelProperty(value = "实训老师（发布人）")
    @TableField("t_name")
    private String tName;

    @ApiModelProperty(value = "发布时间")
    @TableField("h_setime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date hSetime;

    @ApiModelProperty(value = "结束时间")
    @TableField("h_stoptime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date hStoptime;
}
